Skip to content

fix: restore Herdr live steering and pane reads - #49

Open
ruby-dlee wants to merge 4 commits into
mainfrom
fm/fm-herdr-send-fix-h7
Open

fix: restore Herdr live steering and pane reads#49
ruby-dlee wants to merge 4 commits into
mainfrom
fm/fm-herdr-send-fix-h7

Conversation

@ruby-dlee

Copy link
Copy Markdown
Owner

Intent

Restore firstmate live supervision for every Herdr-backed crewmate: fm-send.sh must deliver literal text, submit it, verify submission, and retry Enter without retyping when an autocomplete popup swallows the first Enter; fm-peek.sh must return real pane content. Fix the firstmate Herdr adapter defect rather than working around Herdr, preserve the explicit legacy certificate lab safety contract, eliminate the schema-probe broken-pipe path, add a regression that fails on the broken behavior, and record empirical evidence. The user requires verification against a real already-running Herdr pane without creating or driving a default-session lab. Ship through a PR and green CI, but do not merge. Main currently has a known unrelated Behavior test failure being fixed on another fresh branch; if this PR reports that identical inherited failure, identify it explicitly and do not chase it as part of this change.

What Changed

  • Restore fm-send.sh and fm-peek.sh for running native-agent Herdr servers while retaining certificate enforcement in the explicit legacy lifecycle lab.
  • Parse the complete Herdr schema with jq to eliminate pipefail-related broken pipes, and correct enforced-routing guidance for native agent startup.
  • Add focused read/steer and schema regressions, stabilize Herdr supervision tests, and document live-pane verification evidence.

Risk Assessment

✅ Low: The change is narrowly scoped, restores native Herdr read/steer routing while preserving the opt-in legacy certificate contract, and replaces the broken-pipe-prone capability probe with full JSON parsing backed by focused regressions and documented live-pane evidence.

Testing

Completed 1 recorded test check.

  • Outcome: ⚠️ 1 error across 2 runs (6h9m37s)

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

✅ **Review** - passed

✅ No issues found.

⚠️ **Test** - 1 error
  • 🚨 tests failed with exit code 1
  • command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; uv run --directory tools/agent-fleet --locked pytest || rc=1; uv run --directory tools/agent-fleet --locked python -m compileall -q src || rc=1; exit "$rc"

🔧 Fix: Stabilize Herdr send regression tests
1 error still open:

  • 🚨 tests failed with exit code 1
  • command -v tmux >/dev/null || { echo "tmux is required for e2e tests" >&2; exit 1; }; tmux -V; rc=0; for t in tests/*.test.sh; do echo "== $t =="; bash "$t" || rc=1; done; uv run --directory tools/agent-fleet --locked pytest || rc=1; uv run --directory tools/agent-fleet --locked python -m compileall -q src || rc=1; exit "$rc"
🔧 **Document** - 1 issue found → auto-fixed ✅
  • ⚠️ bin/fm-spawn.sh:2337 - The enforced-routing error still claims Herdr requires a process-bound closed-shell certificate, contradicting the documented native-agent cutover. Resolving it requires editing an executable error string, which this documentation-only task forbids.

🔧 Fix: Correct Herdr enforced-routing error guidance
✅ Re-checked - no issues remain.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant